<?php

namespace api\models;
use backend\module\content\models\ContentCategory;
use Yii;

/**
 * This is the model class for table "{{%article}}".
 *
 * @property int $id
 * @property string $title
 * @property int $catid
 * @property string $thumb
 * @property string $content
 * @property string $description
 * @property string $keywords
 * @property int $usreid
 * @property string $url
 */
class Article extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%article}}';
    }

    
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('common', 'ID'),
            'title' => Yii::t('common', 'Title'),
            'catid' => Yii::t('common', 'Category'),
            'thumb' => Yii::t('common', 'Thumb'),
            'content' => Yii::t('common', 'Content'),
            'description' => Yii::t('common', 'Description'),
            'keywords' => Yii::t('common', 'Keywords'),
            'userid' => Yii::t('common', 'Userid'),
            'url' => Yii::t('common', 'Url'),
            'sort' => Yii::t('common', 'Sort'),
            'created' => Yii::t('common', 'Create Time'),
            'date_range' => Yii::t('common', 'Data Range'),
            'region_id' => Yii::t('common', 'Region'),
            'map_lat' => Yii::t('common', 'Latitude'),
            'map_lng' => Yii::t('common', 'Longitude'),
        ];
    }
}
